package com.dg11185.nearshop.net.response;

import org.json.JSONException;
import org.json.JSONObject;

public class SendSmsCodeResponse {
    public final static String SUCCESS = "SUCCESS";// 发送成功
    public final static String FAILE = "FAILE";// 调用短信接口失败
    public final static String REQ_UN_TIMEOUT = "REQ_UN_TIMEOUT";// 5分钟内不允许重复请求
    public final static String ILLEGAL_PAR = "ILLEGAL_PAR";// 参数异常
    public final static String MEM_MEMEXITS = "MEM_MEMEXITS";// 手机号已被注册
    public final static String EXCEPTION = "EXCEPTION";// WS调用失败
    public final static String ILLEGAL_SIGN = "ILLEGAL_SIGN";// 签名无效
    public final static String MEM_NOTFOUND = "MEM_NOTFOUND";// 不存在该用户

    public String responseStr = "";
    public String status;

    public void parseJson(String response) throws JSONException {
        this.responseStr = response;
        JSONObject jsonObject = new JSONObject(response);
        status = jsonObject.getString("status");
    }

}
